import request from '@/utils/request'

// 用户登录
export function login(username, password) {
  const data = {
    username,
    password
  }
  return request({
    url: '/user/authenticate/login',
    method: 'post',
    data: data
  })
}
//用户注册
export function register(username, birthday, phone, email, password, male, job) {
  const data = {
    username,
    birthday,
    phone,
    email,
    password,
    male,
    job
  }
  return request({
    url: '/user/authenticate/register',
    method: 'post',
    data: data
  })
}